//IN COINFECTION 03_2012.DTA

replace mortality=1 if (yr0910==1 & vt_st==.)
replace mortality=2 if (yr0910==1 & vt_st==9)
replace mortality=3 if (yr0910==1 & vt_st==1)

gen yr0308=(dxyear<2009)

tab yr0308
tab death_da if yr0308==1
count if !missing(death_da)

replace mortality=3 if (death_da!=. & yr0308==1)
replace mortality=1 if (death_da==. & yr0308==1)
replace mortality=3 if (death_da!=. & yr2012==1)

//in the large data file _ 

//checking
//new
